/*
 * @Description: 协议发送成功-支付成功详情页
 * @Author: ziwei.ma
 * @Date: 2019-06-03 17:38:55
 * @Last Modified by: ziwei.ma
 * @Last Modified time: 2019-06-03 17:39:22
 */

<template>
  <div
    id="app"
    class="flex-v flex-vc"
  >
    <div class="page">
      <div class="pay-cardtype-wrapper flex-v flex-vc">
        <img
          class="success-icon"
          src="../assets/paysuccess.png"
        >
        <span class="success-cardtype fontsize34 baseColorWithActive">云公交卡充值成功</span>
        <span class="pay-price fontsize60">{{orderDetailObj.payFee}}元</span>
      </div>
      <div class="payment-details-wrapper fontsize28">
        <div class="list-order flex-h flex-hsb">
          <span>付款方式</span>
          <div>{{orderDetailObj.payMent}}</div>
        </div>
        <div class="list-order flex-h flex-hsb">
          <span>支付时间</span>
          <div>{{orderDetailObj.tradeTime}}</div>
        </div>
        <div class="list-order flex-h flex-hsb">
          <span>订单编号</span>
          <div>{{orderDetailObj.outTradeNo}}</div>
        </div>
      </div>
    </div>
    <banner
      width="9.2rem"
      height="1.6rem"
      :bannerEnName='bannerName'
    ></banner>
    <div
      class="back-home baseColorWithActive fontsize28"
      @click="backHome"
    >返回首页</div>
  </div>
</template>

<script>
import { Banner } from 'vue-xb-ui-depot'
import { open } from '@/utils/JumpUtils.js'
export default {
  name: 'App',
  components: {
    'banner': Banner
  },
  data() {
    return {
      // 广告位名称
      bannerName: window.APP_CARD_RECHARGE_SUCCESS
    }
  },
  props: {
    orderDetailObj: '' // 父组件传回的订单详情
  },
  methods: {
    backHome() {
      open('xbapp://home?select=1')
    }
  }
}
</script>

<style scoped>
html,
body,
#app {
  height: 100%;
}
.page {
  width: 690px;
  height: calc(100% - 241px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 30px;
}
/* 支付成功图标 √ */
.success-icon {
  width: 200px;
  height: 200px;
  margin: 40px 275px 0 275px;
}
.success-cardtype {
  display: inline-block;
  height: 48px;
  line-height: 48px;
  font-weight: 400;
  margin-top: 25px;
}
.pay-price {
  display: inline-block;
  height: 84px;
  line-height: 84px;
  margin: 13px 0 95px 0;
  font-weight: 400;
}
/* 支付订单详情 */
.payment-details-wrapper {
  border-top: 1px solid #d8d8d8; /*no*/
}
.list-order {
  height: 90px;
  line-height: 90px;
}
.list-order > span {
  color: #999999;
}
/* 返回首页按钮 */
.back-home {
  width: 750px;
  height: 121px;
  text-align: center;
  line-height: 121px;
  position: absolute;
  bottom: 0;
}
</style>
